package top.hjcwzx.wrench.design.framework.tree;


public interface StrategyHandler<T, D, R> {

    StrategyHandler DEFAULT = (T, D) -> null;

    /**
     * 执行
     * @param requestParameter 入参
     * @param dynamicContext 动态上下文
     * @return 返回值
     * @throws Exception 异常
     */
    R apply(T requestParameter, D dynamicContext) throws Exception;
}
